package com.siegelion.section.dataBinding;

import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;

import com.siegelion.R;
import com.siegelion.databinding.ActivityDataBindingBinding;

public class DataBindingAct extends AppCompatActivity {

    ActivityDataBindingBinding binding;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = DataBindingUtil.setContentView(this, R.layout.activity_data_binding);
        setSupportActionBar(findViewById(R.id.toolbar));
        User user=new User("333");
        binding.setUser(user);
    }

}